const { Schema, model} = require('mongoose');
// 1.设置集合结构
const usersSchema = new Schema({
  username: String,
  password: String
},{versionKey:false});
//2.设置数据模型，同时连接数据集合
module.exports.usersModel = model('usersModel',usersSchema,'users');